<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-07-06 11:16
 *
 * Version: 2.0
 */

namespace App\Modules\DataCenter\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class VisitHistoryValidator extends LaravelValidator
{
	protected $rules = [
		ValidatorInterface::RULE_CREATE => [
			'store_id' => 'required|numeric',
			'member_id' => 'required|numeric',
			'count' => 'required|numeric',
		],
		ValidatorInterface::RULE_UPDATE => [
			'store_id' => 'filled',
			'member_id' => 'filled',
			'count' => 'filled',
		]
	];
	protected $messages = [
		'store_id.required' => '店铺id不能为空',
		'store_id.numeric' => 'store_id必须为数字',
		'member_id.required' => '用户id不能为空',
		'member_id.numeric' => 'member_id必须为数字',
		'count.required' => '用户点击数不能为空',
		'count.numeric' => '用户点击数必须为数字'
	];

}